package com.unify.python.model;


public class IPProxy {

    private String host;
    private Integer port;

    public IPProxy(String proxyIpStr) {
        String[] proxyArray = proxyIpStr.split(":");
        this.host = proxyArray[0];
        this.port = Integer.parseInt(proxyArray[1]);
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "IPProxy{" +
                "host='" + host + '\'' +
                ", port='" + port + '\'' +
                '}';
    }
}
